package com.ck.datacenter.plus.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ck.datacenter.plus.dao.PlusDao;
import com.ck.datacenter.plus.vo.Zdb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @author chenke
 * @version 1.0
 * @date 2021-12-14 10:26
 */
@Service
public class PlusServiceImpl implements PlusService {

    @Autowired
    private PlusDao plusDao;

    @Override
    public List<Zdb> findZdbList() {

        Page<Zdb> page = new Page<>();
        page.setCurrent(2);
        page.setSize(2);

        Zdb vo = new Zdb();
        vo.setZdz("1");

        IPage<Zdb> zdbIPage = plusDao.selectZdzPage(page, vo);

        System.out.println(zdbIPage.getRecords());

        return zdbIPage.getRecords();
    }
}

